package com.xuelang.pipeline.artifact.app.harborv2.enums;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author xiwen.zxg
 * @since 2024/7/18
 */
public enum WebhookTargetTypeEnum {
    http,
    slack;

    /**
     * 获取枚举列表
     *
     * @return
     */
    public static List<String> toList() {
        return Arrays.stream(WebhookTargetTypeEnum.values())
                .map(Enum::name)
                .collect(Collectors.toList());
    }
}
